//
//  SimPhotoModel
//

#import <UIKit/UIKit.h>

static NSString *kSimPhotoModelImageLoadBeginNoti = @"kSimPhotoModelImageLoadBeginNoti";
static NSString *kSimPhotoModelImageLoadProgressNoti = @"kSimPhotoModelImageLoadProgressNoti";
static NSString *kSimPhotoModelImageLoadFinishNoti = @"kSimPhotoModelImageLoadFinishNoti";
static NSString *kSimPhotoNotiPhotoKey = @"photo";
static NSString *kSimPhotoNotiProgressKey = @"progress";

@interface SimPhotoModel : NSObject

@property (nonatomic, strong) UIImage *thumbImage;
@property (nonatomic, strong) NSURL *overlayURL; 
@property (nonatomic, readonly) UIImage *loadedImage;
@property (nonatomic, readonly) NSURL *photoURL;

+ (SimPhotoModel *)photoWithImage:(UIImage *)image;
+ (SimPhotoModel *)photoWithURL:(NSURL *)url;

- (id)initWithImage:(UIImage *)image;
- (id)initWithURL:(NSURL *)url;

- (void)unloadImage;
- (void)tryLoadImage;
- (void)cancelImageLoad;

@end

